import { createDiscreteApi } from 'naive-ui'

const { message, notification, dialog, loadingBar } = createDiscreteApi([
  'message',
  'notification',
  'dialog',
  'loadingBar'
])

const msgUtil = {
  $message: message,
  $notification: notification,
  $dialog: dialog,
  $loadingBar: loadingBar
}

export default msgUtil
